package com.fwj.gmall.product.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fwj.gmall.model.product.BaseTrademark;
import com.fwj.gmall.product.mapper.BaseTrademarkMapper;
import com.fwj.gmall.product.service.TrademarkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TrademarkServiceImpl implements TrademarkService {

    @Autowired
    BaseTrademarkMapper baseTrademarkMapper;

    @Override
    public IPage<BaseTrademark> baseTrademark(Long page, Long limit) {
        Page<BaseTrademark> iPage = new Page<>();
        iPage.setCurrent(page);
        iPage.setSize(limit);
        return baseTrademarkMapper.selectPage(iPage, null);
    }
}
